import pandas as pd

df = pd.DataFrame()
for i in range(0, 50):
    url = f'http://www.stat-nba.com/query.php?page='+str(i)+'&crtcol=player_name_out&order=1&QueryType=game&GameType=season&Player_id=1717#label_show_result'
    df = pd.concat([df, pd.read_html(url)[0].iloc[::,:-1]])    # 合并DataFrame  不要明细那一列
df.to_csv('JordanData.csv', encoding='utf-8', index=False)
